package com.danbay.cloud.device.entity.electricmeter;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 电表账单记录表
 * @author Zhouyc
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_em_bill")
public class EmBill {

    @TableId(type=IdType.AUTO)
    private Long id;

    /**
     *电表deviceId
     */
    private String deviceId;

    /**
     *房间ID
     */
    private String roomId;

    /**
     *起始读数
     */
    private Double startMeterCount;

    /**
     *结算时读数
     */
    private Double endMeterCount;

    /**
     *开始时间
     */
    private Date startTime;

    /**
     *结束时间
     */
    private Date endTime;

    /**
     *使用电量
     */
    private Double useCount;

    /**
     *单价
     */
    private Integer price;

    /**
     *使用金额
     */
    private Double useFee;

    /**
     *客厅电表deviceId
     */
    private String livingRoomDeviceId;

    /**
     *客厅电表读数
     */
    private Double livingRoomCount;

    /**
     *走廊电表deviceId
     */
    private String corridorDeviceId;

    /**
     *走廊电表读数
     */
    private Double corridorCount;

    /**
     *分摊电量
     */
    private Double partitionCount;

    /**
     *分摊电费
     */
    private Double partitionFee;

    /**
     *总应交电费
     */
    private Double totalFee;

    private Date addTime;
}
